﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NetworkPower.Data.Models.Mapping
{
    public class CableLineMap : EntityTypeConfiguration<CableLine>
    {
        public CableLineMap()
        {
            this.HasKey(t => new { t.CableLineId });
            // Table & Column Mappings
            this.ToTable("CableLines");
            this.Property(t => t.CableLineNo).HasColumnName("CableLineNo");
            this.Property(t => t.LoopNo).HasColumnName("LoopNo");

        }
    }
}
